import { axios } from '@/utils/request'

/**
 * 商户管理
 */

export function selectByStoreId (parameter) {
  return axios({
    url: '/shop/receiver/selectByStoreId',
    method: 'post',
    params: parameter
  })
}
export function selectPage (parameter) {
  return axios({
    url: '/shop/receiver/selectPage',
    method: 'post',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/shop/receiver/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/shop/receiver/' + parameter + '/delete',
    method: 'get'
  })
}
export function deleteStoreReceiver (parameter) {
  return axios({
    url: '/shop/receiver/' + parameter + '/deleteStoreReceiver',
    method: 'get'
  })
}


export function selectAllReceiver () {
  return axios({
    url: '/shop/receiver/selectAll',
    method: 'post'
  })
}
export function saveStoreReceiver (parameter) {
  return axios({
    url: '/shop/receiver/saveStoreReceiver',
    method: 'post',
    data: parameter
  })
}